package com.bsc.relay.service;

import com.bsc.relay.server.command.concrete.RelayMessageCommand;
import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ClientMain {

	private static final int PORT = 9190;
        private static final String HOST = "127.0.0.1";
        private static long CONNECT_TIMEOUT = 30 * 1000L;

	private static final Logger LOGGER = LoggerFactory
			.getLogger(ClientMain.class);

	public static void main(String[] args) {
		try {
			ClientServer cs = new ClientServer(HOST,PORT,CONNECT_TIMEOUT);
                        cs.start();
                        RelayMessageCommand rmc = new RelayMessageCommand();
                        
                        cs.getSession().write(rmc);
                        System.out.println("1111");
		} catch (IOException e) {
			LOGGER.error("Can't start server!", e);
		}
	}

}
